package cn.edu.scau.cmi.hekaimin.total;

import javafx.fxml.FXML;

import javafx.scene.control.Button;
import cn.edu.scau.cmi.hekaimin.client.AbstractFactoryMethodClient;
import cn.edu.scau.cmi.hekaimin.client.AdapterClient;
import cn.edu.scau.cmi.hekaimin.client.CompositePatternClient;
import cn.edu.scau.cmi.hekaimin.client.ConsistentCompositeClient;
import cn.edu.scau.cmi.hekaimin.client.FactoryMethodClient;
import cn.edu.scau.cmi.hekaimin.client.MultitonClient;
import cn.edu.scau.cmi.hekaimin.client.SimpleFactoryClient;
import cn.edu.scau.cmi.hekaimin.client.SingletonClient;
import javafx.event.ActionEvent;

import javafx.scene.image.ImageView;
import javafx.stage.Stage;

public class TotalController {
	@FXML
	private ImageView image;
	@FXML
	private Button btn_1;
	@FXML
	private Button btn_2;
	@FXML
	private Button btn_3;
	@FXML
	private Button btn_4;
	@FXML
	private Button btn_5;
	@FXML
	private Button btn_6;
	@FXML
	private Button btn_7;
	@FXML
	private Button btn_8;
	@FXML
	private Button btn_9;

	@FXML
	public void action1(ActionEvent event) throws Exception {
		SingletonClient x = new SingletonClient();
		x.start(new Stage());
	}
	// Event Listener on Button[#btn_2].onAction
	@FXML
	public void action2(ActionEvent event) throws Exception {
		MultitonClient x = new MultitonClient();
		x.start(new Stage());
	}
	// Event Listener on Button[#btn_3].onAction
	@FXML
	public void action3(ActionEvent event) throws Exception {
		SimpleFactoryClient x = new SimpleFactoryClient();
		x.start(new Stage());
	}
	// Event Listener on Button[#btn_4].onAction
	@FXML
	public void action4(ActionEvent event) throws Exception {
		FactoryMethodClient x = new FactoryMethodClient();
		x.start(new Stage());
	}
	// Event Listener on Button[#btn_5].onAction
	@FXML
	public void action5(ActionEvent event) throws Exception {
		AbstractFactoryMethodClient x = new AbstractFactoryMethodClient();
		x.start(new Stage());
	}
	// Event Listener on Button[#btn_6].onAction
	@FXML
	public void action6(ActionEvent event) throws Exception {
		AdapterClient x = new AdapterClient();
		x.start(new Stage());
	}
	// Event Listener on Button[#btn_7].onAction
	@FXML
	public void action7(ActionEvent event) throws Exception {
		AdapterClient x = new AdapterClient();
		x.start(new Stage());
	}
	// Event Listener on Button[#btn_8].onAction
	@FXML
	public void action8(ActionEvent event) throws Exception {
		CompositePatternClient x = new CompositePatternClient();
		x.start(new Stage());
	}
	// Event Listener on Button[#btn_9].onAction
	@FXML
	public void action9(ActionEvent event) throws Exception {
		ConsistentCompositeClient x = new ConsistentCompositeClient();
		x.start(new Stage());
	}
}
